package org.example;

import javax.swing.*;

public class Two extends JPanel {
    private JLabel address;
    private JComboBox<String> inputAddress;

    public Two() {
        this.addContent();
    }

    private void addContent() {
        this.setLayout(null);
        this.address = new JLabel();
        this.address.setText("默认安装路径:");
        this.address.setBounds(20, 20, 100, 30);
        this.inputAddress = new JComboBox<>(new String[]{
                "/Users/cengyunke/Desktop/atm1/Photo/src/main/java/org/example"
        });
        this.inputAddress.setBounds(120, 20, 270, 30);
        this.inputAddress.setEnabled(false);
        this.add(this.address);
        this.add(this.inputAddress);
    }

    public JLabel getAddress() {
        return address;
    }

    public void setAddress(JLabel address) {
        this.address = address;
    }

    public JComboBox<String> getInputAddress() {
        return inputAddress;
    }

    public void setInputAddress(JComboBox<String> inputAddress) {
        this.inputAddress = inputAddress;
    }
}
